package com.albb.scotk.conttoller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/scotk")
@RestController
@RefreshScope
public class ScotkContorller {

    @Value("${password}")
    private String password;

    @RequestMapping("/delStock")
    public String delStock(String str) {
        System.out.println("delStock减库存:" + str);
        return password + "卧槽 sdf" + str;
    }


}
